@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content" id="AudienceInfoForm">
        <div class="form-horizontal">
            <input type="hidden" id="id" value="${audience.id}">
            <div class="row title">
                <div class="col-sm-12">修改信息</div>
            </div>
            <div class="row mt20" style="border-bottom: 20px solid #f1f1f1;">
                <div class="col-sm-6" style="height: 33px;">
                    <#select id="sex" name="性别" underline="false">
                    <option value="0">请选择性别</option>
                    @if(audience.sex=="1"){
                    <option value="1" selected>男</option>
                    @}else{
                    <option value="1">男</option>
                    @}
                    @if(audience.sex=="2"){
                    <option value="2" selected>女</option>
                    @}else{
                    <option value="2">女</option>
                    @}
                </#select>
                </div>
                <div class="col-sm-6">
                    <#input id="name" name="姓名" value="${audience.name}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="companyCn" name="公司名中文" must="must" value="${audience.companyCn}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="companyEn" name="公司名英文"  value="${audience.companyEn}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="position" name="职位"  value="${audience.position}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="department" name="部门"  value="${audience.department}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="country" name="国家"  value="${audience.country}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="province" name="省"  value="${audience.province}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="city" name="市"  value="${audience.city}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="address" name="详细地址" value="${audience.address}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="postcode" name="邮编"  value="${audience.postcode}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="seatCountryCode" name="座机国家区号"  value="${audience.seatCountryCode}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="seatAreaCode" name="座机地区号"  value="${audience.seatAreaCode}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="seatcode" name="座机号"  value="${audience.seatcode}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="faxCountryCode" name="传真国家区号"  value="${audience.faxCountryCode}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="faxAreaCode" name="传真地区号"  value="${audience.faxAreaCode}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="faxcode" name="传真号"  value="${audience.faxcode}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="phoneAreaCode" name="手机区号"  value="${audience.phoneAreaCode}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="phone" name="手机号"  value="${audience.phone}"/>
                </div>

                <div class="col-sm-6">
                    <#input id="email" name="邮箱"  value="${audience.email}"/>
                </div>
                <div class="col-sm-6">
                    <#input id="website" name="网站"  value="${audience.website}"/>
                </div>
                <div class="col-sm-6">
                    <#select id="businessType1" name="公司商业性质1" underline="false"   must="must">
                    <option value="">请选择商业性质1</option>
                    @for(item in businessTypeList){
                    @var id = item.code;
                    @if(audience.businessType1==id){
                    <option value="${item.code}" selected>${item.name}</option>
                    @}else{
                    <option value="${item.code}">${item.name}</option>
                    @}
                    @}
                </#select>
                    <!--<#input id="businessType1" name="贵公司商业性质1" must="must" value="${audience.businessType1}"/>-->
                </div>
                <div class="col-sm-6">
                    <#select id="businessType2" name="公司商业性质2" underline="false" >
                    <option value="">请选择商业性质2</option>
                    @for(item in businessTypeList){
                    @var id = item.code;
                    @if(audience.businessType2==id){
                    <option value="${item.code}" selected>${item.name}</option>
                    @}else{
                    <option value="${item.code}">${item.name}</option>
                    @}
                    @}
                </#select>
                    <!--<#input id="businessType2" name="贵公司商业性质2" must="must" value="${audience.businessType2}"/>-->
                </div>
                <div class="col-sm-6">
                    <#select id="businessType3" name="公司商业性质3" underline="false"   >
                    <option value="">请选择商业性质3</option>
                    @for(item in businessTypeList){
                    @var id = item.code;
                    @if(audience.businessType3==id){
                    <option value="${item.code}" selected>${item.name}</option>
                    @}else{
                    <option value="${item.code}">${item.name}</option>
                    @}
                    @}
                </#select>
                    <!--<#input id="businessType3" name="贵公司商业性质3" must="must" value="${audience.businessType3}"/>-->
                </div>
                <div class="col-sm-6">
                    <#select id="industryType" name="公司行业性质" underline="false"   must="must">
                    <option value="">请选择行业性质</option>
                    @for(item in industryTypeList){
                    @var id = item.code;
                    @if(audience.industryType==id){
                    <option value="${item.code}" selected>${item.name}</option>
                    @}else{
                    <option value="${item.code}">${item.name}</option>
                    @}
                    @}
                    </#select>
                    <!--<#input id="industryType" name="贵公司行业性质" must="must" value="${audience.industryType}"/>-->
                </div>
                <div class="col-sm-6">
                    <#select id="property" name="客户身份"  underline="false"   must="must">
                        <option value="">请选择客户身份</option>
                        @for(item in propertyList){
                            @var id = item.code;
                            @if(audience.property==id){
                            <option value="${item.code}" selected>${item.name}</option>
                            @}else{
                            <option value="${item.code}">${item.name}</option>
                            @}
                        @}
                    </#select>
                    <!--<#input id="property" name="属性（展商/观众）" must="must" value="${audience.property}"/>-->
                </div>
<div class="col-sm-6">
    <#textarea id="partakeActivity" name="参与活动"  placeholder="请输入参与活动" underline="false" value="${audience.partakeActivity}"/>
</div>
<div class="col-sm-6">
    <#textarea id="remark" name="备注"  placeholder="请输入备注" underline="false" value="${audience.remark}"/>
</div>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-12 tc">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="AudienceInfo.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="window.location.href='${ctxPath}/audience'"/>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/audience/audience_info.js"></script>
@}
